<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>在本次请求结束后终止 apache 子进程</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ref.apache.html">« Apache 函数</a></li>
      <li style="float: right;"><a href="function.apache-get-modules.html">apache_get_modules »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.apache.html">Apache 函数</a></li>
    <li>在本次请求结束后终止 apache 子进程</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.apache-child-terminate" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">apache_child_terminate</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">apache_child_terminate</span> &mdash; <span class="dc-title">在本次请求结束后终止 apache 子进程</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.apache-child-terminate-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>apache_child_terminate</strong></span>(): <span class="type"><span class="type void">void</span></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>apache_child_terminate()</strong></span>
   将把运行当前 PHP 请求的 Apache 子进程注册为终止状态，一旦结束
   PHP 代码的运行此进程将终止。可以用在占用大量内存的脚本后面来终止该进程，因为通常内存只在内部释放而不会还给操作系统。
  </p>
  <p class="para">
    在 Apache 和 FastCGI 网页服务器中运行。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.apache-child-terminate-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.apache-child-terminate-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>

 
 <div class="refsect1 notes" id="refsect1-function.apache-child-terminate-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: <span class="simpara">此函数未在 Windows 平台下实现。</span></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.apache-child-terminate-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.exit.html" class="function" rel="rdfs-seeAlso">exit()</a> - 输出一个消息并且退出当前脚本</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>